package com.donger.business.modules.app.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 *  app版本(AppVersion)表实体类
 *
 * @author aeizzz
 * @since 2020-01-29 13:14:35
 */
@Data
@TableName
public class AppVersion implements Serializable {

    private static final long serialVersionUID = -1; 
    
        
    /*id*/
    @TableId
    private Long id;

    /*版本*/
    @NotBlank(message = "版本不能为空")
    private String version;
        
    /*下载地址*/
    @NotBlank(message = "App地址不能为空")
    private String url;
        
    /*创建人*/    
    private Long createBy;
        
    /*创建时间*/    
    private LocalDateTime createTime;
        
    /*更新人*/    
    private Long updateBy;
        
    /*更新时间*/    
    private LocalDateTime updateTime;
        
    /*密码*/    
    private String password;
        
    /*包名*/
    @NotBlank(message = "包名不能为空")
    private String bundleId;

    // 内部版本  使用 自增实现
    @Version
    private Integer build;


    // 说明
    private String description;
}